package com.cloudkinto.vo.cost;

import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
public class OrderMsgForCostEt {
    @ApiModelProperty("SKU种类")
    private int skuKind;
    @ApiModelProperty("箱子数量")
    private int boxQty;
    @ApiModelProperty("箱子长宽高")
    private List<BoxMsg> boxes = new ArrayList<>();
    @ApiModelProperty("SKU长宽高")
    private List<SkuMsg> skus = new ArrayList<>();
    //体积目前 入库单是按产品体积算的
    @ApiModelProperty("订单类型 查看StaticDict: Cost_Input_OrderType  Cost_Out_OrderType")
    private String orderType;
    @ApiModelProperty("票体积 (sku 总体积)")
    private Dimension totalVolume;
    @ApiModelProperty("票总重 sku 总重量")
    private Dimension totalWeight;

    private Long trackId;

    public OrderMsgForCostEt(List<BoxMsg> boxes, List<SkuMsg> skus) {
        this.boxes = boxes;
        this.skus = skus;
    }

    @Data
    @Builder
    public static class Dimension {
        @ApiModelProperty("公制")
        private BigDecimal value;
        @ApiModelProperty("英制")
        private BigDecimal valueBs;
    }
}
